package com.djl.seckilldemo.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @program: seckill-demo
 * @description: 公共放回对象
 * @author: Mr.dai
 * @create: 2021-10-14 10:17
 **/
@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    //通用
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务端异常"),
    //登录模块具体
    LOGIN_ERROR(500210,"用户名或者密码错误"),
    MOBILE_ERROR(500211,"手机号码不正确"),
    MOBILE_NOT_EXIT(500212,"手机号码不存在"),
    PASSWORD_UPDATE_FAIL(500214,"密码更新失败"),
    BIND_ERROR(500212,"参数校验异常"),
    //秒杀模块5005xx
    EMPTY_STOCK(500500,"库存不足"),
    REQUEST_ILLEGAL(500501,"请求非法"),
    //该商品没人限购一件
    REPEATE_ERROR(500501,"该商品每人限购一件"),
    SESSION_ERROR(500502,"用户不存在"),
    //订单模块5003xx
    ORDER_NO_EXIST(500300,"订单信息不存在"),
    ACCESS_LIMIT_REAHCED(500504,"访问过于频繁请稍后再试")

    ;

    ;
    private  final  Integer code;
    private final  String message;


}
